/**
 * Created by Lcp on 2018/3/15.
 */
var index = window.location.search.split('=')[1],
    newData = JSON.parse(sessionStorage.getItem('data'));
$('.newNames').val(newData[index].name ? newData[index].name: '');
$('.newOne').attr('src',newData[index].screenPhotoFull ? newData[index].screenPhotoFull : '');
$('.newTwo').attr('src',newData[index].screenPhotoFace ? newData[index].screenPhotoFace : '');
$('.newThree').attr('src',newData[index].comparePhotoFull ? newData[index].comparePhotoFull : '');
$('.newFour').attr('src',newData[index].comparePhotoFace ? newData[index].comparePhotoFace : '');
$('.newFive').attr('src',newData[index].capturedResultPhoto ?newData[index].capturedResultPhoto : '');
if(newData[index].capturedResultPhoto != null){
    for(var i = 0; i < newData[index].capturedResultPhoto.split(',').length; i++){
        $('.fiveShowImg').append('<img  src="'+ newData[index].capturedResultPhoto.split(',')[i] +'" onerror="nofind(this)" class="baseImg"/>');
    }
}
$('.card').val(nulls(newData[index].idcard));
$('.kind').val(nulls(newData[index].type));
$('.newName').val(nulls(newData[index].personateName));
$('.newCard').val(nulls(newData[index].personateIdcard));
$('.date').val(nulls(newData[index].capturedTime));
$('.number').val(nulls(newData[index].solveCaseNum));
$('.date').val(nulls(newData[index].capturedTime));
$('.caseNum').val(nulls(newData[index].caseNum));
$('.caseKind').val(nulls(newData[index].caseType));
$('.remark').val(nulls(newData[index].comments));
//导出
function excels(item) {
    window.location.href = `${baseUrls}resultExcel?excelFlag=${item}&xh=${newData[index].xh}`;
}